package cn.tedu.medicalpath.prescription.pojo.dto;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.Min;
import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;

//处方药品保存参数
@Data
public class PrescriptionMedicineSaveParam {
    @ApiModelProperty(value = "处方ID，非空，关联到处方表")
    @Min(value = 1, message = "prescriptionId must be a non-negative integer")
    private Long  prescriptionId;
    @ApiModelProperty(value = "药品ID，非空，关联到药品信息表")
    @Min(value = 1, message = "medicineId must be a non-negative integer")
    private Long  medicineId;
    @ApiModelProperty(value = "用药指导，最大长度255字符")
    @NotNull(message = "Instruction cannot be null")
    private String instruction;
    @ApiModelProperty(value = "药品数量，整数形式存储")
    @Min(value = 0, message = "medicineNumber must be a non-negative integer")
    private Integer number;
    @ApiModelProperty(value = "处方药品金额，以整数形式存储（例如：单位为分）")
    @Min(value = 0, message = "Price must be a non-negative integer")
    private Integer price;
    @ApiModelProperty(value = "医保结算金额，以整数形式存储（例如：单位为分）")
    @Min(value = 0, message = "insurancePrice must be a non-negative integer")
    private Integer insurancePrice;
}
